package com.itheima.d6_object_stream;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class Test2ObjectInputStream {
    public static void main(String[] args) {
        try (ObjectInputStream ois = new ObjectInputStream(
                new FileInputStream(
                        "C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima11.txt"))
        ) {
            Object o = ois.readObject();
            System.out.println(o);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
